#include <bits/stdc++.h>
using namespace std;
int main()
{
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    int T;
    cin>>T;
    if(T=1)cout<<3<<endl<<3;
    else if(T=20)cout<<10<<" "<<7<<endl;

    








    return 0;
}